import request from '@/utils/request'
import { parseStrEmpty } from '@/utils/ruoyi'

//查询用户详情
export function getUserDept(userId) {
  return request({
    url: '/system/user/dept/' + parseStrEmpty(userId),
    method: 'get'
  })
}

export function getDepts(param) {
  return request({
    url: '/system/dept/list',
    method: 'get',
    params: param
  })
}

export function myDeptTree(userId) {
  return request({
    url: '/system/dept/tree/' + parseStrEmpty(userId),
    method: 'get'
  })
}